<template>
<div class="homenav">
    <button @click="clickbutton">改变message</button>
</div>
</template>
<script>
// 导入库
import eventBus from './utils/event-bus'
export default {
    methods:{
        clickbutton() {
            console.log("clickbutton")
            // homenav传递值给app
            eventBus.emit("Eventemit","ran",19)
        }
    }
}
</script>
<style scoped lang="less">

</style>